<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车</title>
    <style>
        div {
            position: relative;
            width: 250px;
            height: 100px;
            /* background-color: pink; */
            border: 1px solid rgb(28, 190, 28);
        }

        img {
            width: 68px;
            height: 60px;
            position: absolute;
            top: 20px;
            right: 180px;
        }

        #shuzi {

            /* position: absolute; */
            border: 1px solid red;
            border-radius: 10px;
            width: 23px;
            height: 19px;
            top: 16px;
            right: -50px;
            background-color: rgb(255, 0, 0);
            color: white;
        }

        p {
            color: red;
            position: absolute;
            top: 20px;
            right: 35px;
        }
    </style>
</head>

<body>
    <div>
        <img src="../浮动与定位/购物车.png" alt="">
        <div id="shuzi">99</div>
        <p>我的收藏</p>
    </div>

</body>

</html>